package com.jie.service;

import com.jie.dao.GoodsDao;
import com.jie.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jie.entity.QuerInfo;
import com.jie.utility.FrontInfo;
import com.jie.utility.QueryInfo;
import com.jie.utility.R;
import org.elasticsearch.action.search.SearchResponse;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jie
 * @since 2024-01-16
 */
public interface GoodsService extends IService<Goods> {
    R<List<GoodsDao>> goods(QueryInfo queryInfo,Integer adminId);

    R<GoodsDao> goodsByid(String id);

    R<List<GoodsDao>> goodsByES(FrontInfo frontInfo) throws IOException;

    GoodsDao findidfigure(String id);

    List<String> mySuggestion(String name);
    R<List<GoodsDao>> getListR(SearchResponse response);

    List<GoodsDao> getGoodsforAdmin(Goods goods);
}
